//
//  HJHUD.h
//  KaiChat
//
//  Created by lx on 2023/10/18.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, HJHUDType) {
    HJHUDTypeNone,
    HJHUDTypeSucceed,
    HJHUDTypeError,
};

@class MBProgressHUD;

@interface HJHUD : NSObject

+ (void)showLoadingInView:(nullable UIView *)view graceTime:(NSTimeInterval)graceTime;
+ (void)showLoadingInView:(nullable UIView *)view text:(nullable NSString *)text graceTime:(NSTimeInterval)graceTime;
+ (void)showLoadingInView:(nullable UIView *)view text:(nullable NSString *)text;
+ (void)showLoadingInView:(nullable UIView *)view;
+ (void)updateHudText:(NSString *)text;
+ (void)showLoading;

+ (void)hiddenLoadingInView:(nullable UIView *)view;
+ (void)hiddenLoading;

+ (void)showMessage:(nullable NSString *)message inView:(UIView *)view;
+ (void)showMessage:(nullable NSString *)message;

+ (void)showErrorMessage:(nullable NSString *)message inView:(UIView *)view;
+ (void)showErrorMessage:(nullable NSString *)message;

+ (void)showSucceedMessage:(nullable NSString *)message inView:(UIView *)view;
+ (void)showSucceedMessage:(nullable NSString *)message;

+ (void)showLogMessage:(nullable NSString *)message;
+ (void)hiddenMessage;

@end

NS_ASSUME_NONNULL_END
